/* SPDX-License-Identifier: GPL-2.0 */

/*
 * Copyright (C) 2016-2018, LomboTech Co.Ltd.
 * Author: lomboswer <lomboswer@lombotech.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef __LOMBO_CODEC_H
#define __LOMBO_CODEC_H

#define LOMBO_AC_VER                (0x00000000)
#define LOMBO_AC_ACCFG              (0x00000004)
#define LOMBO_AC_ISR                (0x00000008)
#define LOMBO_AC_IEC                (0x0000000C)
#define LOMBO_AC_ACRST              (0x00000020)
#define LOMBO_AC_PWRCM              (0x00000030)
#define LOMBO_AC_PWRM               (0x00000034)
#define LOMBO_AC_PWRIN              (0x00000038)
#define LOMBO_AC_PWROUT             (0x0000003C)
#define LOMBO_AC_SCTL               (0x00000040)
#define LOMBO_AC_IRECLS             (0x00000050)
#define LOMBO_AC_IRECRS             (0x00000054)
#define LOMBO_AC_MUTEIN             (0x00000060)
#define LOMBO_AC_VPGAL              (0x00000070)
#define LOMBO_AC_VPGAR              (0x00000074)
#define LOMBO_AC_VRECL              (0x00000080)
#define LOMBO_AC_VRECR              (0x00000084)
#define LOMBO_AC_MPLAYL             (0x00000090)
#define LOMBO_AC_MPLAYR             (0x00000094)
#define LOMBO_AC_DMUTEOUT           (0x000000A0)
#define LOMBO_AC_AMUTEOUT           (0x000000A8)
#define LOMBO_AC_VPLAYL             (0x000000B0)
#define LOMBO_AC_VPLAYR             (0x000000B4)
#define LOMBO_AC_RECCTL             (0x000000D4)
#define LOMBO_AC_PLAYCTL            (0x000000D8)
#define LOMBO_AC_PWMDAC             (0x00000204)

#define AC_CACHEREGNUM	25

#define RESET_DEFAULT		0x3
#define AC_MUTE			0x1
#define AC_UNMUTE		0x0
#define AC_POWER_ON		0x1
#define AC_POWER_OFF		0x0

#endif /* __LOMBO_CODEC_H */

